package com.yuhs.zixing.study.springboot.retry;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/4/19 2:47 AM
 */
@RestController
@RequestMapping("/retryDemo")
public class TestRetryController {
    @Resource
    TestRetryServiceImpl retryService;

    @RequestMapping("/retry")
    public String T() throws Exception {
        final int test = retryService.test(0);
        return "测试";

    }
}
